package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ITravelCommendService {
    /**
     *
     * @param qo
     * @return
     */
    PageInfo<TravelCommend> query(TravelCommendQuery qo);

    /**
     * 更新或推荐游记
     * @param commend 推荐信息
     */
    void saveOrUpdate(TravelCommend commend, MultipartFile file);

    /**
     * 查询app的推荐游记
     * @param qo
     * @return
     */
    PageInfo<Map> queryForApp(TravelCommendQuery qo);
}
